//
//  FFTransferVC.m
//  LiMaoTransfer
//
//  Created by tt on 2020/9/17.
//

#import "FFTransferVC.h"

@interface FFTransferVC ()

@property(nonatomic,strong) UIView *bigFooterView;

@end

@implementation FFTransferVC

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.viewModel = [FFTransferVM new];
    }
    return self;
}

- (void)viewDidLoad {
    
    self.viewModel.uid = self.uid;
    
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.tableView.keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;
    
    self.bigFooterView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WKScreenWidth, 1000)];
    self.bigFooterView.backgroundColor = [WKApp shared].config.cellBackgroundColor;
    self.bigFooterView.opaque = YES;
    [self.tableView.tableFooterView addSubview:self.bigFooterView];
    
}

- (void)viewConfigChange:(WKViewConfigChangeType)type {
    [super viewConfigChange:type];
    if(type == WKViewConfigChangeTypeStyle) {
        self.bigFooterView.backgroundColor  = [WKApp shared].config.cellBackgroundColor;
    }
}

//- (UIButton *)transferBtn {
//    if(!_transferBtn) {
//        CGFloat width = 80;
//        CGFloat bottomSafe = 0;
//        if (@available(iOS 11.0, *)) {
//            bottomSafe =  [[[UIApplication sharedApplication] keyWindow] safeAreaInsets].bottom;
//        }
//        _transferBtn = [[UIButton alloc] initWithFrame:CGRectMake(self.view.ff_width - width - 20.0f, self.view.ff_height-100 - bottomSafe, width, 50.0f)];
//        [_transferBtn setTitle:@"转账" forState:UIControlStateNormal];
//        [_transferBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
//        [[_transferBtn titleLabel] setFont:[[FFApp shared].config appFontOfSizeMedium:17.0f]];
//        [_transferBtn setBackgroundColor:[FFApp shared].config.themeColor];
//        _transferBtn.layer.masksToBounds = YES;
//        _transferBtn.layer.cornerRadius = 4.0f;
//    }
//    return _transferBtn;
//}
//

- (void)dealloc
{
    WKLogDebug(@"%s",__func__);
    if(self.onDealloc) {
        self.onDealloc();
    }
}

@end
